/*
 * Created by: 	Zhaoningbo
 * at:			2011-8-17 - 上午09:33:42
 * blog:		(http://zhaoningbo.iteye.com/)
 */
package com.gc.action;

import java.io.Serializable;

public class TimeBook implements com.gc.impl.TimeBook, Serializable {

    private static final long serialVersionUID = -590740115152355313L;

    private org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory
            .getLog(this.getClass().getName());

    public void audit(String name) {

        log.info("[-");
        for (int timeCountor = 0; timeCountor < 3; timeCountor++) {
            log.info(name + "> " + timeCountor);
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        log.info("-]");
    }

    public void doAuditing(String name) {
        this.audit(name);
    }

}
